package com.fzshang.shopping.commen.bean;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.ToString;

/**
 * <p>
 * 评论
 * </p>
 *
 * @author 冯政尚
 * @since 2020-03-13
 */
@ToString
@ApiModel(value="Comment对象", description="评论")
public class Comment extends Model<Comment> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    @ApiModelProperty(value = "评论")
    @TableField("comment")
    private String comment;

    @ApiModelProperty(value = "openid")
    @TableField("openid")
    private String openid;

    @ApiModelProperty(value = "商品id")
    @TableField("good_id")
    private Long goodId;

    @ApiModelProperty(value = "手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "手机号")
    @TableField(exist = false)
    private String StringPhone;

    @ApiModelProperty(value = "")
    @TableField(exist = false)
    private String goodName;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Long createTime;

    public String getGoodName() {
        return goodName;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }

    public String getStringPhone() {
        return StringPhone;
    }

    public void setStringPhone(String stringPhone) {
        StringPhone = stringPhone;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }
    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }
    public Long getGoodId() {
        return goodId;
    }

    public void setGoodId(Long goodId) {
        this.goodId = goodId;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Comment{" +
            "id=" + id +
            ", comment=" + comment +
            ", openid=" + openid +
            ", goodId=" + goodId +
            ", phone=" + phone +
            ", createTime=" + createTime +
        "}";
    }
}
